﻿@{
    ViewBag.Title = "Sort";
}
@model IEnumerable<Data.Model.Dictionary>
<form action="" method="post">
    @Html.AntiForgeryToken()
    <br />
    <div style="width:82%; margin:0 auto; height:auto;" id="sortdiv">
    @{
        foreach (var dict in Model)
        { 
    <ul class="sortul">
        <input type="hidden" value="@dict.ID" name="sort" />
        @dict.Title
    </ul>
        }  
    }
</div>
    <div class="buttondiv">
        <input type="submit" class="mybutton" value="保存排序" />
        <input type="button" class="mybutton" value="返回" onclick="window.location='Body'+'@Request.Url.Query';" />
    </div>
</form>
<script type="text/javascript">
    var win = new RoadUI.Window();
    $(function ()
    {
        @Html.Raw(ViewBag.Script)
        new RoadUI.DragSort($("#sortdiv"));
    });
</script>
